import request from '@/utils/request'

export default {
  Listpage(currentPage, pageSize, LikeDTO) {
    return request({
      url: `/like/Search/${currentPage}/${pageSize}`,
      method: 'post',
      data: LikeDTO
    })
  },
  deleteByids(ids) {
    return request({
      url: `/like/delete`,
      method: 'post',
      data: ids
    })
  },
  // 新增
  add(like) {
    return request({
      url: `/like/save`,
      method: 'post',
      data: like
    })
  },
  // 修改
  update(like) {
    return request({
      url: `/like/update`,
      method: 'post',
      data: like
    })
  },
  //  按照id查询
  findeByid(id) {
    return request({
      url: `/like/selectByid/${id}`,
      method: 'get',
      data: id
    })
  },
  //  按照名称查询
  findeByname(name) {
    return request({
      url: `/like/select/${name}`,
      method: 'get',
      data: name
    })
  }
}

